package vn.bus.bk.object;

public class BusHolder {
    private int numberOfRoute;
    private BusInfo bus;

    public BusHolder(int numberOfRoute, BusInfo bus) {
	this.numberOfRoute = numberOfRoute;
	this.bus = bus;
    }

    public int getNumberOfRoate() {
	return this.numberOfRoute;
    }

    public BusInfo getBus() {
	return this.bus;
    }

    public String getRouteToFind() {
	if (numberOfRoute == 0 || numberOfRoute == -1) {
	    return this.bus.getBusGo();
	} else {
	    return this.bus.getBusBack();
	}
    }
}